package com.xjzd.mapstruct.demo;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StudentMapper3 {
    StudentMapper3 INSTANCE = Mappers.getMapper(StudentMapper3.class);

    // @Mappings({
    //         @Mapping(source = "teacher.teacherName", target = "nameVo"),
    //         @Mapping(source = "student.age", target = "ageVo")
    // })
    StudentVO2 toStudentVO(Student student, Teacher teacher);

}
